package com.zhuzg.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient("seata-account")
public interface AccountService {

    @RequestMapping("/account/deduce")
    public String deduce(@RequestParam("userId") Integer userId,
                         @RequestParam("money") BigDecimal money);

}
